package com.xq.shop.config;

import com.alibaba.druid.util.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author gaoxiaojin
 */
@Component
public class FileConfig {

    @Value("${spring.profiles.active}")
    private String env;

    public String montageUrl(String url) {
        return StringUtils.isEmpty(url) ? null : ("dev".equals(env)? "http://192.168.110.186:8080/shop-api": "https://www.xq1688.com") + url;
    }

}
